/**
 * 
 */
package org.david.code.service.impl;

import java.util.List;

import org.david.code.jdbc.DBUtil;
import org.david.code.jdbc.bean.DBTable;
import org.david.code.service.IDataService;
import org.springframework.stereotype.Service;

/**
 * @author davidxiaozhi
 *
 */
@Service("dataServiceImpl")
public class DataServiceImpl extends GenericServiceImpl<Object> implements IDataService{
	/**
	 * 
	 * @param isRefresh 是否刷新缓存中的数据
	 * @return 数据库中当前模式下的表
	 */
	public List getAllTable(String isRefresh){
		List tablelist=DBUtil.getAllTable(isRefresh);
		return tablelist;
	}
	/**
	 * 
	 * @param tableName 查询的表名
	 * @return 包含列信息的table
	 */
	public DBTable getTableColumns(String tableName){
		DBTable table = DBUtil.getTableColumns(tableName);
		return table;
	}
}
